package com.ioudi.digu.flex.core;

import java.util.Iterator;
import java.util.Set;

import org.springframework.flex.config.MessageBrokerConfigProcessor;

import com.ioudi.digu.flex.config.MessageServiceConfigProcessor;

public class MessageBrokerFactoryBean extends
		org.springframework.flex.core.MessageBrokerFactoryBean
{
	 public void afterPropertiesSet() throws Exception {
//		 Set<MessageBrokerConfigProcessor> processors = this.getConfigProcessors();
//		 Iterator<MessageBrokerConfigProcessor> iterator = processors.iterator();
//		 MessageBrokerConfigProcessor processor;
//		 while(iterator.hasNext())
//		 {
//			 processor = iterator.next();
//			 if(processor instanceof org.springframework.flex.messaging.MessageServiceConfigProcessor)
//			 {
//				 processors.remove(processor);
//				 break;
//			 }
//		 }
//		 processors.add(new MessageServiceConfigProcessor());
		 super.afterPropertiesSet();
	 }   
}
